/*
Copyright (c) 2006 - 2008  Universitaet Osnabrueck, virtUOS
Authors: Markus Ketterl, Johannes Emden, Nils Schuhmacher, Andreas Rickling

This file is part of virtPresenter.

virtPresenter is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

virtPresenter is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with virtPresenter.  If not, see <http://www.gnu.org/licenses/>.
*/

package virtPresenter.model
{	
	/**
	 * Class MouseStep delivers the values of the mousepointer movements
	 * that have been recorded during a lecture. 
	 */
	public class MouseStep
	{
		private var _time:int;
		private var _x:Number;
		private var _y:Number;
		
		/**
		 * Constructor. 
		 */
		public function MouseStep():void
		{
		}
		
		/**
		 * Getter method for the time. 
		 * 
		 * @return _time
		 */
		public function get time():int
		{
			return _time;
		}
		
		/**
		 * Getter method for the x position of the pointer. 
		 * 
		 * @return _x
		 */
		public function get x():Number
		{
			return _x;		
		}
		
		/**
		 * Getter method for the y position of the pointer. 
		 * 
		 * @return _y
		 */
		public function get y():Number
		{
			return _y;	
		}
		
		/**
		 * Setter method for the time. 
		 * 
		 * @parameter time
		 */
		public function set time(time:int):void
		{
			_time=time;
		}
		
		/**
		 * Setter method for the x position of the pointer. 
		 * 
		 * @parameter x
		 */
		public function set x(x:Number):void
		{
			_x=x;
		}
		
		/**
		 * Setter method for the y position of the pointer. 
		 * 
		 * @parameter y
		 */
		public function set y(y:Number):void
		{
			_y=y;
		}
		
		/**
		 * Gives String representation of the MouseStep 
		 * 
		 * @return String
		 */
		public function toString():String
		{
			return "<koordinaten time="+_time+" x="+_x+" y="+_y+">";
		}
	}
}